﻿


namespace Petra.Gis.RenderingServices.PlanarBase 
{
  /// <summary>
  /// Definition of linear units.
  /// </summary>
  public static class MapPaperUnits
  {

    public static readonly MapPaperUnit mm = new MapPaperUnit(0.001, "milimeter", "standard SI");
    public static readonly MapPaperUnit cm = new MapPaperUnit(0.01, "centimeter", "standard SI");
    public static readonly MapPaperUnit m = new MapPaperUnit(1, "meter", "standard SI");


    /// <summary>
    /// Returns the inch unit (1in = 0.025400000000000002m).
    /// </summary>
    public static readonly MapPaperUnit inch = new MapPaperUnit(0.025400000000000002, "inch", "unknown");


    /// <summary>
    /// Returns the foot unit (1ft = 0.3048m).
    /// </summary>
    public static readonly MapPaperUnit ft = new MapPaperUnit(0.3048, "foot", "EPSG");



    public static readonly MapPaperUnit dt = new MapPaperUnit(0.0, "dot", "unknown");



    public static readonly MapPaperUnit px = new MapPaperUnit(1.0/3780, "pixel", "special unit, real size is depended on display device dpi definition");



    public static readonly MapPaperUnit pt = new MapPaperUnit(0.0, "point", "typographic point");
  }
}